<!DOCTYPE html>
<html>
<head>
    <title>购物车表，保存购物车信息。</title>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <link rel="stylesheet" href="../../css/bootstrap.min.css">
    <link rel="stylesheet" href="../../css/font-awesome.min.css">
    <link rel="stylesheet" href="../../plugins/jqgrid/ui.jqgrid-bootstrap.css">
    <link rel="stylesheet" href="../../plugins/ztree/css/metroStyle/metroStyle.css">
    <link rel="stylesheet" href="../../css/main.css">
    <script src="../../libs/jquery.min.js"></script>
    <script src="../../plugins/layer/layer.js"></script>
    <script src="../../libs/bootstrap.min.js"></script>
    <script src="../../libs/vue.min.js"></script>
    <script src="../../plugins/jqgrid/grid.locale-cn.js"></script>
    <script src="../../plugins/jqgrid/jquery.jqGrid.min.js"></script>
    <script src="../../plugins/ztree/jquery.ztree.all.min.js"></script>
    <script src="../../js/common.js"></script>
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <a v-if="hasPermission('generator:upkcart:save')" class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
            <a v-if="hasPermission('generator:upkcart:update')" class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
            <a v-if="hasPermission('generator:upkcart:delete')" class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
                                                                            <div class="form-group">
                        <div class="col-sm-2 control-label">用户标识(数字0：未插入)</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="upkCart.userId" placeholder="用户标识(数字0：未插入)"/>
                        </div>
                    </div>
                                                                <div class="form-group">
                        <div class="col-sm-2 control-label">商品标识(数字0：未插入)</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="upkCart.goodId" placeholder="商品标识(数字0：未插入)"/>
                        </div>
                    </div>
                                                                <div class="form-group">
                        <div class="col-sm-2 control-label">临时登陆的购物车，用户登陆后把购物车内容添加到该用户购物车下(字符串空：未插入)</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="upkCart.sessionId" placeholder="临时登陆的购物车，用户登陆后把购物车内容添加到该用户购物车下(字符串空：未插入)"/>
                        </div>
                    </div>
                                                                <div class="form-group">
                        <div class="col-sm-2 control-label">商品的货号,取自表GOODS的GOODS_SN(字符串空：未插入)</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="upkCart.goodsSn" placeholder="商品的货号,取自表GOODS的GOODS_SN(字符串空：未插入)"/>
                        </div>
                    </div>
                                                                <div class="form-group">
                        <div class="col-sm-2 control-label">商品名称,取自表GOODS的GOODS_NAME(字符串空：未插入)</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="upkCart.goodsName" placeholder="商品名称,取自表GOODS的GOODS_NAME(字符串空：未插入)"/>
                        </div>
                    </div>
                                                                <div class="form-group">
                        <div class="col-sm-2 control-label">市场价格,取自表市场价(数字0：未插入)</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="upkCart.marketPrice" placeholder="市场价格,取自表市场价(数字0：未插入)"/>
                        </div>
                    </div>
                                                                <div class="form-group">
                        <div class="col-sm-2 control-label">商品的本店价,取自表GOODS的SHOP_PRICE(数字0：未插入)</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="upkCart.goodsPrice" placeholder="商品的本店价,取自表GOODS的SHOP_PRICE(数字0：未插入)"/>
                        </div>
                    </div>
                                                                <div class="form-group">
                        <div class="col-sm-2 control-label">商品的扩展属性, 取自GOODS的EXTENSION_CODE(数字0：未插入)</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="upkCart.goodsAttr" placeholder="商品的扩展属性, 取自GOODS的EXTENSION_CODE(数字0：未插入)"/>
                        </div>
                    </div>
                                                                <div class="form-group">
                        <div class="col-sm-2 control-label">取自ECS_GOODS的IS_REAL(数字0：未插入)</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="upkCart.isReal" placeholder="取自ECS_GOODS的IS_REAL(数字0：未插入)"/>
                        </div>
                    </div>
                                                                <div class="form-group">
                        <div class="col-sm-2 control-label">商品的扩展属性,取自GOODS的EXTENSION_CODE(数字0：未插入)</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="upkCart.extensionCode" placeholder="商品的扩展属性,取自GOODS的EXTENSION_CODE(数字0：未插入)"/>
                        </div>
                    </div>
                                                                <div class="form-group">
                        <div class="col-sm-2 control-label">该商品的父商品ID,没有该值为0,有的话那该商品就是该ID的配件(数字0：未插入)</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="upkCart.parentId" placeholder="该商品的父商品ID,没有该值为0,有的话那该商品就是该ID的配件(数字0：未插入)"/>
                        </div>
                    </div>
                                                                <div class="form-group">
                        <div class="col-sm-2 control-label">购物车商品类型;0普通;1团够;2拍卖;3夺宝奇兵(数字0：未插入)</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="upkCart.recType" placeholder="购物车商品类型;0普通;1团够;2拍卖;3夺宝奇兵(数字0：未插入)"/>
                        </div>
                    </div>
                                                                <div class="form-group">
                        <div class="col-sm-2 control-label">是否赠品,0否;其他, 是参加优惠活动的ID,取值于FAVOURABLE_ACTIVITY的ACT_ID(数字0：未插入)</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="upkCart.isGift" placeholder="是否赠品,0否;其他, 是参加优惠活动的ID,取值于FAVOURABLE_ACTIVITY的ACT_ID(数字0：未插入)"/>
                        </div>
                    </div>
                                                                <div class="form-group">
                        <div class="col-sm-2 control-label">是否邮寄(数字0：未插入)</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="upkCart.isShipping" placeholder="是否邮寄(数字0：未插入)"/>
                        </div>
                    </div>
                                                                <div class="form-group">
                        <div class="col-sm-2 control-label">能否处理（数字0：未插入)</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="upkCart.canHandsel" placeholder="能否处理（数字0：未插入)"/>
                        </div>
                    </div>
                                                                <div class="form-group">
                        <div class="col-sm-2 control-label">该商品的属性的ID,取自GOODS_ATTR的GOODS_ATTR_ID,如果有多个,只记录了最后一个,可能是BUG（数字0：未插入)</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="upkCart.goodsAttrId" placeholder="该商品的属性的ID,取自GOODS_ATTR的GOODS_ATTR_ID,如果有多个,只记录了最后一个,可能是BUG（数字0：未插入)"/>
                        </div>
                    </div>
                                                                <div class="form-group">
                        <div class="col-sm-2 control-label">该商品的购买数量255,实际库存不减少(数字0：未插入)</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="upkCart.goodAmount" placeholder="该商品的购买数量255,实际库存不减少(数字0：未插入)"/>
                        </div>
                    </div>
                                                                <div class="form-group">
                        <div class="col-sm-2 control-label">操作员(字符串空：未插入)</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="upkCart.operator" placeholder="操作员(字符串空：未插入)"/>
                        </div>
                    </div>
                                                                <div class="form-group">
                        <div class="col-sm-2 control-label">创建即上传时间(数字0：未插入)</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="upkCart.createUtc" placeholder="创建即上传时间(数字0：未插入)"/>
                        </div>
                    </div>
                                                                <div class="form-group">
                        <div class="col-sm-2 control-label">修改即更新时间(数字0：未插入)</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="upkCart.modifyUtc" placeholder="修改即更新时间(数字0：未插入)"/>
                        </div>
                    </div>
                                                                <div class="form-group">
                        <div class="col-sm-2 control-label">是否删除(数字0：未插入，1.未删除,2：删除，)</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="upkCart.isDeleted" placeholder="是否删除(数字0：未插入，1.未删除,2：删除，)"/>
                        </div>
                    </div>
                                                                <div class="form-group">
                        <div class="col-sm-2 control-label">版本号(数字0：未插入)</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="upkCart.version" placeholder="版本号(数字0：未插入)"/>
                        </div>
                    </div>
                                        <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="../../js/modules/generator/upkcart.js"></script>
</body>
</html>